# 以字典方式定义学号、姓名、年龄
student_info = {
    "学号": "2023001",
    "姓名": "张三",
    "年龄": 20
}

# 修改年龄值+1
student_info["年龄"] += 1

# 以键值对形式输出整个字典
print("字典的键值对：")
for key, value in student_info.items():
    print(f"{key}: {value}")

# 输出字典中所有键
print("\n字典中的所有键：", student_info.keys())

# 输出字典中的所有值
print("字典中的所有值：", student_info.values())